
import { list } from '@/api/services/imageService'

const imageManager = {
  actions: {
    listImages ({ commit }, payload) {
      return new Promise((resolve, reject) => {
        list(payload.query).then(response => {
          resolve(response) // 返回到 then
        }).catch(error => {
          reject(error) // 返回到 catch
        })
      })
    }
  }
}

export default imageManager
